home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kit PC World De Ampliacion De Windows 95
/
Kit PC World de ampliacion de Windows 95.iso
/
clarion
/
cw15
/
tpw15.z
/
VBXWRAP1.TPL
< prev
next >
Wrap
Text File
|
1995-07-06
|
3KB
|
86 lines
#TEMPLATE(VBXWrappers,'Example VBX Wrapper')
#HELP('CWHELP.HLP')
#CONTROL(SaxTabsBrowseBox,'SaxTabs VBX with a Clarion Browse Box'),WINDOW,REQ(BrowseBox(Clarion)),HLP('~TPLControlSaxBrowse')
CONTROLS
CUSTOM('Clarion is Wonderful!'),AT(,,155,21),USE(?Custom1),CLASS('SAXTABS.VBX','SaxTab')
END
#BOXED('SaxTabs for Browse Box')
#DISPLAY('To use this control template with the Clarion')
#DISPLAY('Browse Box, the Browse Box must be set up with')
#DISPLAY('a Range Limit, that is limited to a Range of')
#DISPLAY('Values. The Range Low and Range High values must')
#DISPLAY('be variables')
#BUTTON('SaxTabs for Browse Box Settings'),MULTI(%TabSetting,%TabText & ' - ' & %TabLow & ' to ' & %TabHigh),AT(10,,180)
#PROMPT('Tab Text:', @S20),%TabText,REQ
#PROMPT('Low Value:',@S20),%TabLow,REQ
#PROMPT('High Value:',@S20),%TabHigh,REQ
#DISPLAY('')
#DISPLAY('The "Tab Text" must be an undelimited (no quotes)')
#DISPLAY('string. You may not use a variable for the Tab Text')
#ENDBUTTON
#DISPLAY('')
#BOXED('License Warning')
#DISPLAY('The SAXTABS.VBX is provided only for running the')
#DISPLAY('Cookbook example program. If you want to obtain a')
#DISPLAY('license to use SAXTABS.VBX in your own')
#DISPLAY('applications, please contact:')
#DISPLAY('')
#DISPLAY(' Sax Software')
#DISPLAY(' Phone: 800 645-3729')
#DISPLAY(' Fax: 503 344-2459')
#DISPLAY(' Compuserve: 75033,1723')
#DISPLAY('')
#ENDBOXED
#ENDBOXED
#ATSTART
#DECLARE(%SaxTabsControl)
#DECLARE(%TabStringText)
#FOR(%TabSetting)
#SET(%TabStringText,%TabStringText & CLIP(%TabText) & '|')
#ENDFOR
#SET(%TabStringText,SUB(%TabStringText,1,LEN(%TabStringText)-1))
#FOR(%Control),WHERE(%ControlInstance=%ActiveTemplateInstance)
#SET(%SaxTabsControl,%Control)
#ENDFOR
#ENDAT
#AT(%BeforeAccept)
%SaxTabsControl{Prop:Text}='%TabStringText'
#FOR(%TabSetting)
#IF(SUB(%TabLow,1,1)='!')
#SET(%ValueConstruct,SUB(%TabLow,2,LEN(%TabLow)-1))
%RangeLow = %ValueConstruct
#ELSE
%RangeLow = '%TabLow'
#ENDIF
#IF(SUB(%TabHigh,1,1)='!')
#SET(%ValueConstruct,SUB(%TabHigh,2,LEN(%TabHigh)-1))
%RangeHigh = %ValueConstruct
#ELSE
%RangeHigh = '%TabHigh'
#ENDIF
#BREAK
#ENDFOR
#ENDAT
#AT(%ControlEventHandling,%SaxTabsControl,'VBXEvent')
EXECUTE %SaxTabsControl{'ActiveTab'} + 1
#FOR(%TabSetting)
BEGIN
#IF(SUB(%TabLow,1,1)='!')
#SET(%ValueConstruct,SUB(%TabLow,2,LEN(%TabLow)-1))
%RangeLow = %ValueConstruct
#ELSE
%RangeLow = '%TabLow'
#ENDIF
#IF(SUB(%TabHigh,1,1)='!')
#SET(%ValueConstruct,SUB(%TabHigh,2,LEN(%TabHigh)-1))
%RangeHigh = %ValueConstruct
#ELSE
%RangeHigh = '%TabHigh'
#ENDIF
END
#ENDFOR
END
ForceRefresh = True
DO RefreshWindow
#ENDAT